package com.loveling;

import com.loveling.servlet.MyServlet;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;


@SpringBootApplication
@ServletComponentScan
public class Application {

    /*@Bean
    访问地址：http://127.0.0.1:8080/myServlet
    public ServletRegistrationBean myServlet(){
        return new ServletRegistrationBean(new MyServlet(),"/myServlet*//*");
    }*/

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
